#pragma once

#include <QtWidgets/QWidget>
#include "ui_JSEngine.h"
#include <QDebug>
class MyObject : public QObject
{
    Q_OBJECT
public:
    Q_INVOKABLE int add(int a, int b) { return a + b; }

    Q_INVOKABLE void log(QString message) {
        qDebug() << message;
    }
};


class JSEngine : public QWidget
{
    Q_OBJECT

public:
    JSEngine(QWidget *parent = nullptr);
    ~JSEngine();

private:
    Ui::JSEngineClass ui;
};
